package net.wsfcp.android.http.mvp.contract;

import net.wsfcp.android.bean.requestbean.ReqCityBean;
import net.wsfcp.android.bean.requestbean.ReqCreateAddressBean;
import net.wsfcp.android.bean.resultbean.AddressBean;
import net.wsfcp.android.bean.resultbean.CityBean;

import java.util.ArrayList;

/**
 * Created by Shaoboyang on 2018/12/14.
 * 契约类,定义登录用到的一些接口方法
 */

public class AddressContract {

    public interface CreateAddressView {

        String getOldPwd();

        String getNewPwd();

        String getRepeatNewPwd();

        void createAddressSuccess();

        void createAddressFail(String failMsg);

        void getCitySuccess(ArrayList<CityBean> cityBeans);

        void getCityFail(String failMsg,int type);


    }

    public interface EditAddressView {

        void getAddressListSuccess(ArrayList<AddressBean> bean);

        void getAddressListFail(String failMsg);

        void setDefaultAddressSuccess();

        void setDefaultAddressFail(String failMsg);

        void deleteAddressSuccess();

        void deleteAddressFail(String failMsg);

    }


    public interface CreateAddressPresenter {
        void createAddress(ReqCreateAddressBean bean);

        void getCity(ReqCityBean bean);
    }

    public interface EditAddressPresenter {
        void getAddressList();

        void setDefaultAddress(String id);

        void deleteAddress(String id);
    }
}
